package com.common.utils;

import com.common.constants.Constants;

import javax.servlet.http.HttpServletRequest;

/**
 * @author johnny
 * @create 2021-05-13 9:57 上午
 **/
public  class TokenUtils {

    public static String getTokenFromRequest(HttpServletRequest request) {
        return request.getHeader(Constants.ACCESS_TOKEN);
    }

    public static String getRefreshTokenFromRequest(HttpServletRequest request) {
        return request.getHeader(Constants.REFRESH_TOKEN);
    }
}